From cd5cf5efb220ffbb375ccf6318cc2ce375461b25 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 23 Oct 2009 10:12:52 +0100 Subject: [PATCH] xsm: Corrected check in io_has_perm() Fix the check in io_has_perm() to correctly check the start and end of I/O Memory. Signed-off-by : George Coker Signed-off-by : Paul Nuzzi --- xen/xsm/flask/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c index 2b996c5d1e..c2aaec80b6 100644 --- a/xen/xsm/flask/hooks.c +++ b/xen/xsm/flask/hooks.c @@ -1176,7 +1176,7 @@ static int io_has_perm(struct domain *d, char *name, unsigned long s, return rc; if ( s != e ) - rc = iomem_has_perm(d, s, access); + rc = iomem_has_perm(d, e, access); } else if ( strcmp(name, "Interrupts") == 0 ) { -- 2.30.2